﻿$.using("a2d.core.events.provider");

a2d.core.events.provider.amplify = function () {
    this.publish = function (subject, args) {
        amplify.publish(subject, args);
    };

    this.subscribe = function (subject, handler) {
        amplify.subscribe(subject, handler);
    };
};

$(document).ready(function () {
    a2d.core.events.service.setup({ provider: new a2d.core.events.provider.amplify() });
});
